package cn.edu.scau.cmi.mazhuanglong.composite.consistent;

import java.util.HashSet;
import java.util.Set;

public abstract class ConsistentOrganization {

	ConsistentOrganization parent;
	Set<ConsistentOrganization> children = new HashSet<ConsistentOrganization>();

	abstract public ConsistentOrganization getParent();

	abstract public void setParent(ConsistentOrganization parent);

	abstract public ConsistentOrganization addChild(ConsistentOrganization child);

	abstract public ConsistentOrganization removeChild(ConsistentOrganization child);

	abstract public Set<ConsistentOrganization> getChildren();
}